<?php

/**
 +-----------------------------------------------------
 * PublicModel
 +-----------------------------------------------------
 * @author	liuricheng 
 * @time	2014-03-13
 * @type	[add]
 * 
 */
import("ORG.Util.Function");


class SupplierModel extends Model{
	
	/**
	 * 取得供货商列表
	 * @return array    二维数组
	 */
	function get_suppliers_list(){
	    $sql = 'SELECT * FROM ' . 'ybr_suppliers ' . ' WHERE is_check = 1 ORDER BY suppliers_name ASC';
	    $res = $this->query($sql);	
	    if (!is_array($res)){
	        $res = array();
	    }	
	    return $res;
	}
	
	
}